package com.vae.mall.goods.feign;

import com.vae.mall.common.response.RespResult;
import com.vae.mall.goods.api.entity.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "categoryFeign",value = "goods-service")
public interface CategoryFeign {

    @GetMapping(value = "/category/{id}")
    public RespResult<Category> one(@PathVariable(value = "id")Integer id);

}